package org.jeecg.modules.job.rms.service.impl;

import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.job.rms.entity.RmsCourse;
import org.jeecg.modules.job.rms.mapper.RmsCourseMapper;
import org.jeecg.modules.job.rms.service.IRmsCourseService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 课程信息
 * @Author: jeecg-boot
 * @Date:   2022-12-18
 * @Version: V1.0
 */
@Service
public class RmsCourseServiceImpl extends ServiceImpl<RmsCourseMapper, RmsCourse> implements IRmsCourseService {

    @Override
    public boolean addOrUpdate(RmsCourse param) {
        if (oConvertUtils.isNotEmpty(param.getId())){
            return this.updateById(param);
        }else{
            return this.save(param);
        }
    }
}
